package cool.houge.hello.controller;

import cool.houge.hello.auth.AuthContext;
import cool.houge.hello.auth.Authorized;
import io.jooby.annotations.ContextParam;
import io.jooby.annotations.GET;
import io.jooby.annotations.QueryParam;

/** @author KK (kzou227@qq.com) */
public class HelloController {

  @GET("/hello")
  @Authorized(permits = {"A", "B"})
  public String hello(@QueryParam String firstName, @ContextParam AuthContext ac) {
    return "Hello World!";
  }
}
